#!/bin/sh

NEW=$1


SCRIPTPATH=$(cd $(dirname $0); pwd)
#echo $SCRIPTPATH
INSTALLPATH="${SCRIPTPATH}/.."
#echo $INSTALLPATH

if [ -f ${INSTALLPATH}/config/autorun/config ]
then

   OLD=$(grep "autorun_enable" ${INSTALLPATH}/config/autorun/config)
   sed -i "s/$OLD/autorun_enable=$NEW/g" ${INSTALLPATH}/config/autorun/config
   

fi
